<?php
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/header.php');

include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
$config = include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
$rev=sel($config,'lanmu');
$re=sel($config,'biaoqian');
?>
<script type="text/javascript" charset="utf-8" src="/public/biadu/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/biadu/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/public/biadu/lang/zh-cn/zh-cn.js"></script>
<div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
            <i class="icon-font"></i>
            <a href="/admin/index.php">首页</a>
            <span class="crumb-step">&gt;</span>
            <a class="crumb-name" href="/admin/article/zeng.php">文章管理</a>
            <span class="crumb-step">&gt;</span>
            <span>添加文章</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="add.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <th width="120">选择栏目:</th>
                            <td>
                              <select name="lan" value="">
                                 <?php foreach ($rev as $v) {
                                   echo '<option>'.$v['lan'].'</option>';
                                  } ?>
                              </select>
                            </td>
                               <tr>
                                <th>标题：</th>
                                 <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                 </td>
                               </tr>
                            <tr>
                                <th>uid：</th>
                                <td>
                                    <input class="common-text required" id="title" name="uid" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                         <th>作者：</th>
                        <td><input class="common-text" name="author" size="50" value="" type="text"></td>
                         </tr> 
                            
                              <tr>
                                <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="tu" id="" type="file" value=""></td>
                            </tr>
                           <tr>
                         <th>标签：</th>
                        <td>
                        <?php 
                        foreach ($re as $v) {
                           echo  '<input class="common-text" name="biao" size="50" value="'.$v['biao'].'" type="radio">'.$v['biao'].'  ';
                        }
                         ?>
                        </td>
                         </tr> 
                            <tr>
                                <th>内容：</th>
                                <td><script id="editor" type="text/plain" style="width:600px;height:300px;" name="content"
                                    ></script>
                                    <script type="text/javascript">
                                     var ue = UE.getEditor('editor',{
                                                            toolbar:
                                                            'emotion'
                                                        }); 
                                    </script></td>
                            </tr>
                                <th></th>
                                <td>
                                    
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
<?php  
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/footer.php');
?> 